<?php

/**
 * AcessoPublico [TIPO]
 * Descricao
 * @copyright (c) year, Romulo B. Bosco 
 */
class AcessoPublico {
    
    public $Nome;
    public $Email;
    
    function __construct($Nome, $Email) {
        $this->Nome = $Nome;
        //$this->Email = $Email;
        $this->setEmail($Email);
    }
    
    public function setEmail($Email) {
        if(!filter_var($Email, FILTER_VALIDATE_EMAIL)):
            die('Email Invalido');
        else:
            $this->Email = $Email;
        endif;
    }

}
